package com.ilvyou.data.lcs;

import java.sql.Timestamp;

/**
 * Created by Administrator on 2017/2/13.
 */
public class CollectPsync2Entity {
    private Integer ymdayid;
    private Long periodid;
    private Long actid;
    private Short syncflag;
    private Timestamp syncdate;

    public CollectPsync2Entity() {
    }

    public Integer getYmdayid() {
        return this.ymdayid;
    }

    public Long getPeriodid() {
        return this.periodid;
    }

    public Long getActid() {
        return this.actid;
    }

    public Short getSyncflag() {
        return this.syncflag;
    }

    public Timestamp getSyncdate() {
        return this.syncdate;
    }

    public void setYmdayid(Integer ymdayid) {
        this.ymdayid = ymdayid;
    }

    public void setPeriodid(Long periodid) {
        this.periodid = periodid;
    }

    public void setActid(Long actid) {
        this.actid = actid;
    }

    public void setSyncflag(Short syncflag) {
        this.syncflag = syncflag;
    }

    public void setSyncdate(Timestamp syncdate) {
        this.syncdate = syncdate;
    }

    public boolean equals(Object o) {
        if(o == this) {
            return true;
        } else if(!(o instanceof CollectPsync2Entity)) {
            return false;
        } else {
            CollectPsync2Entity other = (CollectPsync2Entity)o;
            if(!other.canEqual(this)) {
                return false;
            } else {
                label71: {
                    Integer this$ymdayid = this.getYmdayid();
                    Integer other$ymdayid = other.getYmdayid();
                    if(this$ymdayid == null) {
                        if(other$ymdayid == null) {
                            break label71;
                        }
                    } else if(this$ymdayid.equals(other$ymdayid)) {
                        break label71;
                    }

                    return false;
                }

                Long this$periodid = this.getPeriodid();
                Long other$periodid = other.getPeriodid();
                if(this$periodid == null) {
                    if(other$periodid != null) {
                        return false;
                    }
                } else if(!this$periodid.equals(other$periodid)) {
                    return false;
                }

                label57: {
                    Long this$actid = this.getActid();
                    Long other$actid = other.getActid();
                    if(this$actid == null) {
                        if(other$actid == null) {
                            break label57;
                        }
                    } else if(this$actid.equals(other$actid)) {
                        break label57;
                    }

                    return false;
                }

                Short this$syncflag = this.getSyncflag();
                Short other$syncflag = other.getSyncflag();
                if(this$syncflag == null) {
                    if(other$syncflag != null) {
                        return false;
                    }
                } else if(!this$syncflag.equals(other$syncflag)) {
                    return false;
                }

                Timestamp this$syncdate = this.getSyncdate();
                Timestamp other$syncdate = other.getSyncdate();
                if(this$syncdate == null) {
                    if(other$syncdate == null) {
                        return true;
                    }
                } else if(this$syncdate.equals(other$syncdate)) {
                    return true;
                }

                return false;
            }
        }
    }

    protected boolean canEqual(Object other) {
        return other instanceof CollectPsync2Entity;
    }

    public int hashCode() {
        boolean PRIME = true;
        byte result = 1;
        Integer $ymdayid = this.getYmdayid();
        int result1 = result * 59 + ($ymdayid == null?43:$ymdayid.hashCode());
        Long $periodid = this.getPeriodid();
        result1 = result1 * 59 + ($periodid == null?43:$periodid.hashCode());
        Long $actid = this.getActid();
        result1 = result1 * 59 + ($actid == null?43:$actid.hashCode());
        Short $syncflag = this.getSyncflag();
        result1 = result1 * 59 + ($syncflag == null?43:$syncflag.hashCode());
        Timestamp $syncdate = this.getSyncdate();
        result1 = result1 * 59 + ($syncdate == null?43:$syncdate.hashCode());
        return result1;
    }

    public String toString() {
        return "CollectPsync2Entity(ymdayid=" + this.getYmdayid() + ", periodid=" + this.getPeriodid() + ", actid=" + this.getActid() + ", syncflag=" + this.getSyncflag() + ", syncdate=" + this.getSyncdate() + ")";
    }
}
